/*eslint keyword-spacing: ["error", { "before": true }]*/

if (foo) {
  //...
}else if (bar) {
  //...
}else {
  //...
}